package com.acoffee.controller;

import com.acoffee.pojo.ResponseEntity;
import com.acoffee.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author acoffee
 * @create 2021-11-23 14:51
 */
@RestController
public class UserController {

    @RequestMapping(value = "/user",produces = "application/json;charset=UTF-8")
    public ResponseEntity<User> test1(@RequestBody User user) {
        ResponseEntity<User> entity = new ResponseEntity<>(200, "执行成功", user);
        return entity;
    }
}
